<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简历中心</title>
    <link rel="icon" href="/hire/imgs/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/hire/css/common/nav_left.css">
    <link rel="stylesheet" href="/hire/css/user/center/resume_view.css">
    <link rel="stylesheet" href="/hire/plugins/layui/css/layui.css">
<%--    <link rel="stylesheet" href="/hire/plugins/bootstrap/css/bootstrap.css">--%>
</head>

<body>
<div>${resumeView.companyName}</div>
<%@include file="../../common/mynav.jsp" %>
<div class="middler">
    <div class="inner">
        <div class="left">
            <div class="menu-list">
                <ul class="menu">
                    <li><a href="/hire/user/employee_info">个人中心</a></li>
                    <li><a href="/hire/user/resume_center">简历中心</a></li>
                    <li class="active"><a href="/hire/user/resume_view">谁看过我</a></li>
                    <li><a href="/hire/user/mydelivery">我的投递</a></li>
                    <li><a href="/hire/user/mycollection">我的收藏</a></li>
                    <li><a href="/hire/user/myblacklist">我的屏蔽</a></li>
                    <li><a href="/hire/user/account_settings">账号设置</a></li>
                </ul>
            </div>
        </div>

        <div class="right">
            <div class="title">
                <h2>谁看过我</h2>
            </div>
            <div class="readme" >
                <div class="info" >
                    <ul>

                        <div class="container-fluid">
                            <div class="row">
                                    <c:forEach items="${resumeViewList}" var="resumeView">
                                        <div style="width: 917px">
                                            <div class="thumbnail">
                                                <div class="caption">
                                                    <li>
                                                        <div class="content">
                                                            <div class="left">
                                                                <a href="/hire/job/company/companyinfo?id=${resumeView.company.id}">${resumeView.resumeView.companyName}</a>
                                                                <div>
                                                                    <span>${resumeView.company.industryType}</span>
                                                                    <span class="vline"></span>
                                                                    <span>${resumeView.company.num}</span>
                                                                </div>
                                                            </div>
                                                            <div class="right">
                                                                <div class="up">
                                                                    <span>总计看我</span>
                                                                    <span class="number">${resumeView.resumeView.count}</span>
                                                                    <span>次</span>
                                                                    <a href="/hire/job/company/companyinfo?id=${resumeView.company.id}"><button data-method="f1" class="layui-btn c" onclick="ff()">查看详情</button></a>
                                                                </div>
                                                                <div class="down">
                                                                    <span>最后一次查看&nbsp;&nbsp;</span>
                                                                    <span class="curtime"><fmt:formatDate
                                                                            value="${resumeView.resumeView.viewTime}"
                                                                            pattern="yyyy-MM-dd HH:mm:ss"/></span>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </li>
                                                        <%--                                                <h3>${resumeView.id}</h3>--%>
                                                        <%--                                                <p>${resumeView.resume_id}</p>--%>
                                                        <%--                                                <p>${resumeView.company_id}</p>--%>
                                                </div>
                                                    <%--                                            <c:if test="${user.power==1}">--%>
                                                    <%--                                            </c:if>--%>

                                            </div>
                                        </div>
                                    </c:forEach>
                            </div>
                        </div>
                    </ul>
<%--                    <ul class="pagination" style="position: absolute;top: 480px;right: 600px">--%>
<%--                        <li><a href="#">&laquo;</a></li>--%>
<%--                        <li><a href="#">1</a></li>--%>
<%--                        <li><a href="#">2</a></li>--%>
<%--                        <li><a href="#">3</a></li>--%>
<%--                        <li><a href="#">4</a></li>--%>
<%--                        <li><a href="#">5</a></li>--%>
<%--                        <li><a href="#">&raquo;</a></li>--%>
<%--                    </ul>--%>
<%--                    <div id="demo0" style="position: absolute;top: 480px;right: 500px"></div>--%>
                </div>
            </div>
        </div>
        <div id="update-layer" style="display: none; padding: 20px">
            <form id="update-form" class="layui-form layui-form-pane" lay-filter="update-form">
                <div class="layui-form-item" style="display: none;">
                    <label class="layui-form-label">ID</label>
                    <div class="layui-input-block">
                        <input type="text" name="id" class="layui-input" readonly>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">选择简历</label>
                    <c:forEach items="${resume}" var="rs" varStatus="rse">
                        <div class="layui-input-block">
                            <input type="checkbox" name="subject" class="layui-input" lay-verify="required"
                                   autocomplete="off" onclick="find_rsid(this)"><a href="javascript:searchresume(${rs.id})">我的简历${rse.count}</a>
                            <input type="hidden" value="${rs.id}" id="xxx">
                        </div>
                    </c:forEach>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="update-form-submit">投递</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
<%--    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">--%>
<%--        <div class="modal-dialog">--%>
<%--            <div class="modal-content">--%>
<%--                <div class="modal-header">--%>
<%--                    <h4 class="modal-title" id="myModalLabel">--%>
<%--                        请选择简历--%>
<%--                    </h4>--%>
<%--                </div>--%>
<%--                <br>--%>
<%--                    <c:forEach items="${resumeViewList}" var="resumeView">--%>
<%--                            <button type="button" class="btn btn-primary" style="background-color:#00b38a;border: 0;margin-left:20px">我的简历</button>--%>
<%--                    </c:forEach>--%>
<%--                <div class="modal-footer" style="border-top: 0px">--%>
<%--                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭--%>
<%--                    </button>--%>
<%--&lt;%&ndash;                    <button type="button" class="btn btn-primary" style="background-color:#00b38a;border: 0">&ndash;%&gt;--%>
<%--&lt;%&ndash;                        提交更改&ndash;%&gt;--%>
<%--&lt;%&ndash;                    </button>&ndash;%&gt;--%>
<%--                </div>--%>
<%--            </div><!-- /.modal-content -->--%>
<%--        </div><!-- /.modal -->--%>
<%--    </div>--%>
</div>
<script src="/hire/plugins/layui/layui.js"></script>
<script src="/hire/js/common/page1.js"></script>
<script>
    function ff() {
        layui.use(['jquery', 'layer', 'form'], function () {
            let $ = layui.jquery, layer = layui.layer, form = layui.form;
            // 显示更新用户表单的弹出层
            let send = layer.open({
                type: 1,
                title: '申请职位',
                skin: 'layui-layer-molv',
                area: ['500px'],
                content: $('#update-layer')
            });
    // function delivery(){
    //     document.getElementById("update-layer").style.display='block';
    // }
    function find_cid(obj) {
        let id = obj.children[0].value;
        window.location = "/hire/job/company/companyinfo?id=" + id;
    }
    layui.use(['laypage', 'layer'], function () {
        var laypage = layui.laypage
            , layer = layui.layer;

        //总页数低于页码总数
        laypage.render({
            elem: 'demo0'
            , count: 50 //数据总数
        });
    });
</script>
<%@include file="../../common/myfooter.jsp" %>



<script src="/hire/plugins/jquery/jquery.min.js"></script>
<script src="/hire/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="/hire/plugins/layui/layui.js"></script>
</body>

</html>